package com.itheima.chapter10.thread.demo10;
//线程安全问题-----同步代码块
public class Demo {
    public static void main(String[] args) {
        MyRunnable mr =new MyRunnable();
        Thread t =new Thread(mr);
        Thread t2 =new Thread(mr);
        Thread t3 =new Thread(mr);
        t.start();
        t2.start();
        t3.start();
    }
}
